/*
 * crs.h
 *
 *  Created on: 2011-1-8
 *      Author: zhang
 */

#ifndef CRS_H_
#define CRS_H_
#include <mpi.h>

template<class T>
class CRS{
public:
  T* elements;
  int* rows;
  int* cols;
  int rowsNum;
  int colsNum;
  int elementsNum;

  static void freeCRS(CRS<T>* o){
    free(o->elements);
    free(o->rows);
    free(o->cols);
    free(o);
  }

};




#endif /* CRS_H_ */
